package com.flyco.modules.oms.service.impl;

import com.flyco.modules.oms.entity.OmsOrderCancel;
import com.flyco.modules.oms.mapper.OmsOrderCancelMapper;
import com.flyco.modules.oms.service.IOmsOrderCancelService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;

/**
 * @Description: 订单作废
 * @Author: flyco
 * @Date: 2023-08-15
 * @Version: V1.0
 */
@Service
public class OmsOrderCancelServiceImpl extends ServiceImpl<OmsOrderCancelMapper, OmsOrderCancel> implements IOmsOrderCancelService {


    @Override
    public void save(String orderId) {
        OmsOrderCancel omsOrderCancel = new OmsOrderCancel();
        omsOrderCancel.setOrderId(orderId);
        omsOrderCancel.setCreateTime(new Date());
        save(omsOrderCancel);
    }
}
